package com.example.tagsdemo.service;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;

import java.util.List;
import java.util.Optional;

public interface BaseService<T> {

    List<T> findAll();

    List<T> findAll(Sort var1);

    Page<T> findAll(Pageable var1);

    Optional<T> findById(Object id);

    int insert(T record);

    int delete(T record);

    int deleteById(Object id);

    int updateById(T record);
}
